package swim.entitybeans;

import java.io.Serializable;
import javax.persistence.*;

import java.util.Set;


/**
 * The persistent class for the amministratore database table.
 * 
 */
@Entity
@Table(name="amministratore")
public class Amministratore implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String username;

	private String password;

	//bi-directional many-to-one association to Richiestaadmin
	@OneToMany(mappedBy="amministratore")
	private Set<Richiestaadmin> richiestaadmins;

    public Amministratore() {
    }

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Set<Richiestaadmin> getRichiestaadmins() {
		return this.richiestaadmins;
	}

	public void setRichiestaadmins(Set<Richiestaadmin> richiestaadmins) {
		this.richiestaadmins = richiestaadmins;
	}
	
}